package com.totoro.tymapping.pojo;

import java.util.List;
import java.util.Map;

/**
 * @author Totoro
 * @version 0.1.0
 * @date 2025/8/13 - 2:19
 * @description 配置文件对应的对象
 **/
public class Config {
    private Boolean attributeValueRound;
    private List<String> readSlot;
    private Map<String, Check> checks;

    public Config() {
    }

    public Config(Boolean attributeValueRound, List<String> readSlot, Map<String, Check> checks) {
        this.attributeValueRound = attributeValueRound;
        this.readSlot = readSlot;
        this.checks = checks;
    }

    public Boolean getAttributeValueRound() {
        return attributeValueRound;
    }

    public void setAttributeValueRound(Boolean attributeValueRound) {
        this.attributeValueRound = attributeValueRound;
    }

    public List<String> getReadSlot() {
        return readSlot;
    }

    public void setReadSlot(List<String> readSlot) {
        this.readSlot = readSlot;
    }

    public Map<String, Check> getChecks() {
        return checks;
    }

    public void setChecks(Map<String, Check> checks) {
        this.checks = checks;
    }

    public class Check {
        private List<String> condition;
        private List<String> attribute;
        private List<String> effect;

        public Check() {
        }

        public Check(List<String> condition, List<String> attribute, List<String> effect) {
            this.condition = condition;
            this.attribute = attribute;
            this.effect = effect;
        }

        public List<String> getCondition() {
            return condition;
        }

        public void setCondition(List<String> condition) {
            this.condition = condition;
        }

        public List<String> getAttribute() {
            return attribute;
        }

        public void setAttribute(List<String> attribute) {
            this.attribute = attribute;
        }

        public List<String> getEffect() {
            return effect;
        }

        public void setEffect(List<String> effect) {
            this.effect = effect;
        }
    }
}
